package com.qc31.monitorlib.chart

import com.github.mikephil.charting.components.AxisBase
import com.github.mikephil.charting.formatter.ValueFormatter


/**
 *@Author pc_hfjs
 *@Date 2022/2/9 14:58
 *@Desc
 */
class MAxisFormat(private val unit: String) : ValueFormatter() {
    override fun getAxisLabel(value: Float, axis: AxisBase?): String {
        return "${value}$unit"
    }
}